package com.bosssoft.hr.train.j2se.exception;/*
 * @Auther:hantianbing
 * @Date:2022/12/3
 * @Description:异常类
 */

/**
 * @ClassName Business
 * @Description 这是一个异常类
 * @Author hantianbing
 * @Date 2022/12/3 10:25
 **/
public class BusinessException extends RuntimeException{
    /**
     * 异常码
     */
    private String exceptionCode;

    /**
     * 异常消息
     */
    private String exceptionMessage;

    /**
     * 原异常信息
     */
    private String originMessage;

    public BusinessException(){
     //默认构造方法
    }

    /**
     * 带参构造方法
     * @param exceptionCode
     * @param exceptionMessage
     * @param originMessage
     */
    public BusinessException(String exceptionCode, String exceptionMessage, String originMessage){
        this.exceptionCode = exceptionCode;
        this.exceptionMessage = exceptionMessage;
        this.originMessage = originMessage;
    }

}
